package com.ido4web.model;
// Generated 7 พ.ค. 2557, 12:05:20 by Hibernate Tools 3.4.0.CR1


import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Ido4WebBoardLine generated by hbm2java
 */
@Entity
@Table(name="ido4_web_board_line"
    ,catalog="ido4db"
)
public class Ido4WebBoardLine  implements java.io.Serializable {


     private Ido4WebBoardLineId id;
     private Ido4SysUser ido4SysUser;
     private Ido4WebBoardHeader ido4WebBoardHeader;
     private Date wbLineCreatedDtm;
     private String wbLineCreatedByName;
     private String wbLineReplyText;
     private Short rowStatus;

    public Ido4WebBoardLine() {
    }

	
    public Ido4WebBoardLine(Ido4WebBoardLineId id, Ido4WebBoardHeader ido4WebBoardHeader) {
        this.id = id;
        this.ido4WebBoardHeader = ido4WebBoardHeader;
    }
    public Ido4WebBoardLine(Ido4WebBoardLineId id, Ido4SysUser ido4SysUser, Ido4WebBoardHeader ido4WebBoardHeader, Date wbLineCreatedDtm, String wbLineCreatedByName, String wbLineReplyText, Short rowStatus) {
       this.id = id;
       this.ido4SysUser = ido4SysUser;
       this.ido4WebBoardHeader = ido4WebBoardHeader;
       this.wbLineCreatedDtm = wbLineCreatedDtm;
       this.wbLineCreatedByName = wbLineCreatedByName;
       this.wbLineReplyText = wbLineReplyText;
       this.rowStatus = rowStatus;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="wbhNo", column=@Column(name="WBH_NO", nullable=false) ), 
        @AttributeOverride(name="wbLineNo", column=@Column(name="WB_LINE_NO", nullable=false) ) } )
    public Ido4WebBoardLineId getId() {
        return this.id;
    }
    
    public void setId(Ido4WebBoardLineId id) {
        this.id = id;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="WB_LINE_CREATED_BY_USER_NO")
    public Ido4SysUser getIdo4SysUser() {
        return this.ido4SysUser;
    }
    
    public void setIdo4SysUser(Ido4SysUser ido4SysUser) {
        this.ido4SysUser = ido4SysUser;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="WBH_NO", nullable=false, insertable=false, updatable=false)
    public Ido4WebBoardHeader getIdo4WebBoardHeader() {
        return this.ido4WebBoardHeader;
    }
    
    public void setIdo4WebBoardHeader(Ido4WebBoardHeader ido4WebBoardHeader) {
        this.ido4WebBoardHeader = ido4WebBoardHeader;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="WB_LINE_CREATED_DTM", length=19)
    public Date getWbLineCreatedDtm() {
        return this.wbLineCreatedDtm;
    }
    
    public void setWbLineCreatedDtm(Date wbLineCreatedDtm) {
        this.wbLineCreatedDtm = wbLineCreatedDtm;
    }

    
    @Column(name="WB_LINE_CREATED_BY_NAME", length=100)
    public String getWbLineCreatedByName() {
        return this.wbLineCreatedByName;
    }
    
    public void setWbLineCreatedByName(String wbLineCreatedByName) {
        this.wbLineCreatedByName = wbLineCreatedByName;
    }

    
    @Column(name="WB_LINE_REPLY_TEXT", length=1000)
    public String getWbLineReplyText() {
        return this.wbLineReplyText;
    }
    
    public void setWbLineReplyText(String wbLineReplyText) {
        this.wbLineReplyText = wbLineReplyText;
    }

    
    @Column(name="ROW_STATUS")
    public Short getRowStatus() {
        return this.rowStatus;
    }
    
    public void setRowStatus(Short rowStatus) {
        this.rowStatus = rowStatus;
    }




}


